// 正则工具类

function isImg(fileName) {
    return /^.{20}\.(png|jpg|jpeg|PNG|JPG|JPEG)$/.test(fileName)
}

function isHttp(url) {
    return url.indexOf('http') === 0
}

export default {
    isImg, isHttp
}